package ToDoList;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.Random;

@RestController
public class RootController {
    @GetMapping("/")
    public ResponseEntity<String> get() {
        return ResponseEntity.ok(LocalDateTime.now() + " " + new Random().nextInt(1000));
    }
}
